using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;


namespace AvvaMobileNHibernateHelperKit.Utils
{
    public class MessageBoxUtils
    {
        /// <summary>
        /// This method shows a Message Dialog box with an OK button on it. Useful for displaying an
        ///    message to the user.
        /// </summary>
        /// <param name="owner">Owner of the dialog</param>
        /// <param name="message">Message to display</param>
        /// <param name="caption">Title bar to display</param>
        /// <param name="icon">The appriopriate MessageBoxIcon to display</param>
        /// <returns></returns>

        public static DialogResult ShowMessage(IWin32Window owner, String message, String caption, MessageBoxIcon icon)
        {
            // TODO: make the owner of the dialog be the wizard.
            // return MessageBox.Show(owner, message, caption, MessageBoxButtons.OK, icon, MessageBoxDefaultButton.Button1);

            return MessageBox.Show(null, message, caption, MessageBoxButtons.OK, icon, MessageBoxDefaultButton.Button1);
        }      
    }
}
